package com.yupi.mianshiya.annotation;

import net.bytebuddy.implementation.bind.annotation.RuntimeType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface DisruptorLock {
    String key();
    long leaseTime() default 30000;
    long waitTime() default 10000;
    TimeUnit timeUnit() default TimeUnit.MILLISECONDS;
}
